package com.qishanor.wpan.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.StringSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description:
 * @author: 周振林
 * @date: 2023-05-24
 * @website: http://www.zhouzhenlin.com - 沉淀、分享、成长、让自己和他人都有所收获
 **/

@Data
@Builder(toBuilder = true)
@TableName("wpan_file_final")
public class WpanFile implements Serializable {

    @TableId(type=IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String realName;
    private String finalName;
    private String dirType;
    private Long dirParent;
    private String category;
    private String type;
    private String size;
    private String platform;
    private String url;
    private Integer isRecycle;


    /**
     * 删除标记 1:已删除,0:正常
     */
    @TableLogic
    private Integer delFlag;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Integer createBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateBy;


}
